import axios from '@/util/request.js';
export function getUser(userId){
    return  axios.post("user/findOne",userId,axios.textConfig)
}
export function getRoles(){
    return axios.post("role/findAll")
}
export function doDistributeRole(userId,roles){
    return axios.post("user/distributeRoles",{userId:userId,roles:roles})
}